StoreEngine\models\Order C

Total Complexity 110
Dependencies 3
Dependents 7
Total lines 954
Lines of code 795
Logical lines of code 284
Comment lines 112
Methods 41
Properties 3

Methods 41

Method Rating Maintainability Complexity Lines of code
save()
A
41 7 61
delete()
A
52 8 22
get_all_orders()
S
50 7 26
update()
S
43 5 55
order_meta_update()
S
47 6 38
order_items_and_lookup_update()
S
40 4 67
order_items_and_lookup_insert()
S
42 4 60
order_billing_address_update()
S
39 2 85
order_meta_insert()
S
55 5 19
get_by_primary_key()
S
54 4 19
order_billing_address_insert()
S
48 2 39
is_expired()
S
57 3 18
get_renewal_subscriptions()
S
57 3 17
get_order_by_hash()
S
57 3 16
get_orders_by_customer_id()
S
61 3 12
get_subscription_orders()
S
61 3 12
get_subscription_orders_by_customer_id()
S
61 3 12
get_order_meta_and_lookup_details()
S
55 2 20
get_subscription_by_order_id()
S
68 3 7
get_orders_with_non_zero_payment()
S
59 2 13
get_billing_periods_for_subscription()
S
60 2 12
products_purchased_by_customer()
S
61 2 11
get_single_product_shipping_status()
S
63 2 11
update_shipping_status()
S
57 1 20
order_meta_delete()
S
65 2 8
cancel_subscription()
S
65 2 8
__construct()
S
71 2 6
get_order_meta()
S
65 2 8
get_subscriptions_by_customer_id()
S
64 2 9
prepare_purchase_items_for_response()
S
67 2 7
get_order_by_meta()
S
65 2 8
update_order_meta()
S
61 1 13
add_order_meta()
S
62 1 12
delete_order_meta()
S
63 1 11
get_total_spent_by_customer_id()
S
71 1 5
get_order_items()
S
74 1 4
is_subscription_order()
S
70 1 5
get_purchase_items()
S
74 1 4
update_order_billing_details_by_key()
S
71 1 5
get_order_id_from_hash()
S
71 1 5
get_order_hash()
S
71 1 5